#include "StdAfx.h"
#include "TGSvrNetCfg.h"

TGSvrNetCfg::TGSvrNetCfg(void)
{
	memset(this,0,sizeof(*this));
}

TGSvrNetCfg::~TGSvrNetCfg(void)
{
}


int TGSvrNetCfg::RegCheckUserCallBack(SvrNetCheckUserCBFun funCallBack,void *pContext)
{
	m_xCheckUser.funCallBack = funCallBack;
	m_xCheckUser.pContext    = pContext;

	return TG_ERR_SUCCESS;
}


int TGSvrNetCfg::RegSetConfigCallBack(SvrNetSetConfigCBFun funCallBack,void *pContext)
{
	m_xSetConfig.funCallBack = funCallBack;
	m_xSetConfig.pContext    = pContext;

	return TG_ERR_SUCCESS;
}

int TGSvrNetCfg::RegGetConfigCallBack(SvrNetGetConfigCBFun funCallBack,void *pContext)
{
	m_xGetConfig.funCallBack = funCallBack;
	m_xGetConfig.pContext    = pContext;

	return TG_ERR_SUCCESS;
}


int TGSvrNetCfg::RegRealStreamCallBack(SvrNetRealStreamCBFun funCallBack,void *pContext)
{
	m_xRealStream.funCallBack = funCallBack;
	m_xRealStream.pContext    = pContext;

	return TG_ERR_SUCCESS;
}

int TGSvrNetCfg::RegRealStreamItemCallBack(SvrNetRealStreamItemCBFun funCallBack,void *pContext)
{
	m_xRealStreamItem.funCallBack = funCallBack;
	m_xRealStreamItem.pContext    = pContext;

	return TG_ERR_SUCCESS;
}
